<?php
/**
 * Created by PhpStorm.
 * User: wangan
 * Date: 2017/2/14
 * Time: 15:14
 */

namespace App\Http\Controllers\Ceb;


use App\Http\Controllers\Ceb\BaseController as Controller;
use Illuminate\Http\Request;
class GiftPacksController extends Controller
{
    public function index(Request $request){
        return $this->view('gift-packs.index',[
            'pageSize'=>20,
        ]);
    }

    public function create(Request $request){

        return $this->view('gift-packs.create',[

        ]);
    }

    public function edit(Request $request){
        return $this->view('gift-packs.edit',[

        ]);
    }

    public function searByKeyword(Request $request){
        
        /*
         * 返回结构：
{
code:1,
message:'',
data:{
  list:[{
    id:1,
    name:'xxx',
    items:[{
            id:1,
            name:'xxx',
            count:2
        }]
  }]
 }
}

        参数:keyword
         *
         * */
        return $this->output(1,'',[
            'code'=>1,
            'message'=>'',
            'data'=>[
                'list'=>[
                    ''
                ]
            ]
        ]);
    }

}